package com.itheima.service.db;

import com.itheima.domain.db.Announcement;
import com.itheima.domain.db.User;
import com.itheima.domain.vo.PageBeanVo;

import java.util.List;

public interface UserService {
    Long save(User user);

    User findByPhone(String phone);

    User findById(Long userId);

    void changePhoneNumber(User user);
    /**
     * 获取公告列表
     * @return
     */

    PageBeanVo getAnnounce(Integer pageNum, Integer pageSize);
}
